/* 导入全局组件，注意 组件的 name 属性才是注册时的组件名 */

import HeadNav from './head-nav/head-nav'
import FootNav from './foot-nav/foot-nav'

const components = [
  HeadNav,
  FootNav,
]

export default {
  install: function (Vue) {
    // Vue.component('Struc', Struc)

    components.forEach(component => {
      if (component.name) {
        Vue.component(component.name, component)
      } else {
        console.log('公共组件缺少name属性');
      }
    })
  }
}